-- GENERATED SPELL FOR [Cyclone Warrior] --


function spell0_11745(pUnit, Event) --@Enveloping Winds,n/a--
pUnit:FullCastSpellOnTarget(15535,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11745', 12000, 1)
end

function spell1_11745(pUnit, Event) --@Shock,n/a--
pUnit:FullCastSpellOnTarget(12553,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11745', 0, 1)
end

function Sorts_11745(pUnit, Event)
local choix_sorts_11745 = math.random(0, 1)
if choix_sorts_11745 == 0 then
pUnit:RegisterEvent('spell0_11745', 1, 1)
end
if choix_sorts_11745 == 1 then
pUnit:RegisterEvent('spell1_11745', 1, 1)
end
end

function mob11745_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11745', math.random(1500, 3000), 1)
end

function mob11745_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11745_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11745_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11745, 1, 'mob11745_Action')
RegisterUnitEvent(11745, 2, 'mob11745_Leave')
RegisterUnitEvent(11745, 3, 'mob11745_Kill')
RegisterUnitEvent(11745, 4, 'mob11745_Die')
